package com.ak;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import ltd.newbee.mall.dao.NewBeeMallGoodsMapper;
import ltd.newbee.mall.dao.OrderItemMapper;
import ltd.newbee.mall.dao.OrderMapper;
import ltd.newbee.mall.entity.NewBeeMallGoods;
import ltd.newbee.mall.entity.Proportion;
import ltd.newbee.mall.entity.Sale;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.List;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = {ltd.newbee.mall.NewBeeMallApplication.class})
public class mytest {

    @Autowired
    private NewBeeMallGoodsMapper goodsMapper;


    @Autowired
    private OrderItemMapper orderMapper;

    @Test
    public void contextLoads() {
        List<Proportion> sales = orderMapper.selectProject(10);
        System.out.println(sales);
    }
}
